#ifndef __USER_H__
#define __USER_H__

#include<stdio.h>
#include<stdlib.h>
#include "inclusion.h"


/* Structures */
typedef struct
{
   char * userName;
   int id;
   SOCKET sock;
   SOCKADDR_IN sin;
} User;

/* Setters */
void SetUserName(User * NewUser, char * NewName);
void SetID(User * NewUser, int NewID);
void SetSocket(User * NewUser, SOCKET NewSock);
void SetSin(User * NewUser, SOCKADDR_IN NewSin);
void SetIP(User * NewUser, char * NewIP);

/* Getters */
char * GetUserName(User NewUser);
SOCKET GetSocket(User NewUser);
SOCKADDR_IN GetSin(User NewUser);
int GetID (User NewUser);
char * GetIP(User NewUser);

/* Prototypes */
void TestRegression();


#endif
